package todo_app

type tTodoEventSerializer struct {
}

func newEventSeiralizer() iTodoEventSerializer {
	it := new(tTodoEventSerializer)
	return it
}

func (me *tTodoEventSerializer) Serialize(e *TodoEvent) *tJSONData {
	it := new(tJSONData)
	err := it.Set(TodoEventClass, e)
	if err != nil {
		return nil
	}
	return it
}

var gDefaultEventSerializer = newEventSeiralizer()
